package org.dtrd.modules.record.service;

import org.dtrd.modules.record.entity.bean.NutrientDailyInfo;
import org.dtrd.modules.record.entity.bean.NutrientListInfo;
import org.dtrd.modules.record.entity.bean.NutrientRecordInfo;
import org.dtrd.modules.record.entity.po.DtrdEntRdSigninNutrientRecord;

import java.util.List;

public interface INutrientRecordService extends IRecordService<DtrdEntRdSigninNutrientRecord>{

    /**
     * 更新或修改营养素打卡记录
     */
    boolean saveOrUpdateNutrientRecord(NutrientRecordInfo nutrientRecordInfo);

    /**
     * 分页查询营养素记录
     */
    List<NutrientDailyInfo> getNutrientRecordList(Integer pageNum, Integer pageSize, Integer patientId, String startDate, String endDate);

    Integer getNutrientRecordDataCount(Integer patientId, String startDate, String endDate);

    DtrdEntRdSigninNutrientRecord getNutrientRecordLatestByPatientId(Integer patientId);
}
